<?php
/*
Plugin Name: Email Commenter
Description: Send mail when user post comment
Author: Dxnguyen
Author URI: dxnguyen.com
Plugin URI:dxnguyen.com/plugins
Version: 1.0
*/

global $wp_version;
if(version_compare($wp_version,'3.0','<') ){
	exit('This plugin require Wordpress version 3.0 or higher. Please upgrade now.');
}

function is_email_commenter(){
	$email = $_POST['email'];
	$name = $_POST['author'];
	$message = 'Hello {$name}, thank you your comment';
	wp_mail($email,'Thank you your comment',$message);
}
add_action('comment_post','is_email_commenter');

//add_filter('the_title',strtoupper);

	